package com.pray.praymall.cart.feign;

import com.pray.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;
import java.util.List;

/**
 * do something
 *
 * @author 魂悸魄
 * @date 2020/9/24 15:17
 */
@FeignClient("praymall-product")
public interface ProductFeignService {
    /**
     * 查询商品基本信息
     * @param skuId skuId
     * @return 商品基本信息
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R getSkuInfo(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skusaleattrvalue/stringlist/{skuId}")
    List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skuinfo/price/{skuId}")
    R getPrice(@PathVariable("skuId") Long skuId);
}
